package com.chj.service;

import java.util.List;

import com.chj.entity.ECar;
import com.chj.entity.ECarModel;
import com.chj.entity.Message;
import com.chj.entity.ResultModel;
import com.chj.entity.User;


public interface ECarService {
    
    //添加汽车到用户账户下
    public int addECarToUser(ECar eCar,User user);
    
    //删除汽车信息
    public int deleteECar(String eCarId);
    
    //修改汽车信息
    public int modifyECar(String eCarId);

    //查询汽车信息
    public ECar getECar(String eCarId);

    //按条件查询信息
    public List<ECar> getECarList(String type);

    //获取汽车通过userId
    public List<ECarModel> getECarsByUserId(String userId);

    public ResultModel deletePersonECar(String ecarId);

    public int getECarListSizeBy(String userId);

    public List<ECar> getOrderListBy(String userId, int page, int rows);

    public List<ECarModel> getECarsByUserIdAndBeginAndEnd(String userPk
                                                         ,String chargeTimeBegin
                                                         , String chargeTimeEnd);

}
